package com.cloudkinto.vo.cost;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;


@Data
public class CostInfoEntity extends CostAddEt {
    private List<CostItemEt> items;
    @ApiModelProperty("计费状态 1未计费 2已计费 3重新计费中 4计费中")
    private Integer costStatus;
    @ApiModelProperty("报价方案id")
    private Long quotationId;
    @ApiModelProperty("总金额")
    private BigDecimal costTotal;
    @ApiModelProperty("币种")
    private String currencyCode;
    private Date costTime;

    public BigDecimal getCostTotal() {
        if (costTotal == null) {
            costTotal = new BigDecimal(0);
        }
        return costTotal;
    }

    public void setCostTotal(BigDecimal costTotal) {
        this.costTotal = costTotal;
    }
}
